

//
//  PeopleCountProgressView.m
//  PeopleCountView
//
//  Created by apple on 16/7/1.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "PeopleCountProgressView.h"

@implementation PeopleCountProgressView
{
    UILabel             *backLabel;
    UILabel             *overLabel;
    CGRect              *mframe;
}
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        backLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 2, frame.size.width - 20, frame.size.height - 4)];
        backLabel.backgroundColor = [UIColor whiteColor];
        backLabel.layer.masksToBounds = YES;
        backLabel.layer.borderWidth = 0.5;
        backLabel.layer.borderColor = [[UIColor grayColor] CGColor];
        
        [self addSubview:backLabel];
        
    }
    return self;
}

- (void)changePercent:(float)min Max:(float)max {
    overLabel = [[UILabel alloc]init];
    overLabel.backgroundColor = [UIColor orangeColor];
    overLabel.frame =CGRectMake(10, 2, (min/max)*backLabel.frame.size.width, backLabel.frame.size.height);
    [self addSubview:overLabel];
}





@end
